@page "/counter"

<h1>Counter</h1>

<div>
	<p>The current count is: @currentCount</p>
	<button class="btn btn-primary" @onclick="IncrementCount">Count</button>
</div>

@code {
	int currentCount = 0;

	void IncrementCount()
	{
		currentCount++;
	}
}